import request from '@/utils/request'

// 查询材料采购车辆申请明细列表
export function listMaterialPurchaseCarDetail(query) {
  return request({
    url: '/business/materialPurchaseCarDetail/list',
    method: 'get',
    params: query
  })
}

// 查询材料采购车辆申请明细详细
export function getMaterialPurchaseCarDetail(id) {
  return request({
    url: '/business/materialPurchaseCarDetail/' + id,
    method: 'get'
  })
}

// 新增材料采购车辆申请明细
export function addMaterialPurchaseCarDetail(data) {
  return request({
    url: '/business/materialPurchaseCarDetail',
    method: 'post',
    data: data
  })
}

// 修改材料采购车辆申请明细
export function updateMaterialPurchaseCarDetail(data) {
  return request({
    url: '/business/materialPurchaseCarDetail',
    method: 'put',
    data: data
  })
}

// 保存材料采购车辆申请明细
export function saveMaterialPurchaseCarDetail(data) {
  return request({
    url: '/business/materialPurchaseCarDetail/save',
    method: 'post',
    data: data
  })
}

// 删除材料采购车辆申请明细
export function delMaterialPurchaseCarDetail(id) {
  return request({
    url: '/business/materialPurchaseCarDetail/' + id,
    method: 'delete'
  })
}
